
#ifndef _MEMBER_BELEMENT_H_
#define _MEMBER_BELEMENT_H_

#include <BOpenGL>
#include <BElement>

#define element_member(element)		((member_BElement*)((BElement*)element)->_ptr)

namespace BWE
{
	class member_BElement
	{
	public:
		member_BElement(BElement* element);
		~member_BElement();

		BElement*				boss;
		Primitive				primitive;
		int						first;
		int						count;
		BHolder<BIndexArray>	indices;
		BHolder<BPieceArray>	pieces;
		GLuint					listName;
		bool					dirtyList;
	};
}

#endif
